<?php /* Smarty version 2.6.16, created on 2009-04-29 01:07:43
         compiled from Edit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'messages', 'Edit.html', 1, false),array('function', 'language', 'Edit.html', 4, false),array('function', 'url', 'Edit.html', 19, false),array('function', 'img', 'Edit.html', 36, false),array('modifier', 'escape', 'Edit.html', 56, false),)), $this); ?>
<?php echo smarty_function_messages(array(), $this);?>

<?php if (! count ( $this->_tpl_vars['aItems'] )): ?>
<div style="text-align:center;">
	<?php echo smarty_function_language(array('text' => 'Mod_Video.no_videos_added_yet'), $this);?>

	<br />
	<br />
</div>
<?php else: ?>
<div style="text-align:left;">
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager_nav_button.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
<table style="width:100%;" cellpadding="4" cellspacing="4">
<?php $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aItem']):
?>

<?php if ($this->_tpl_vars['aItem']['vid_url']): ?>
<tr id="vid_image_<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
" style="display:none;">
		<td colspan="3" class="border13">
		<div style="padding:6px; text-align:right;">
			<form target="uploadFrame" action="<?php echo smarty_function_url(array('link' => 'public.videos.changethumb'), $this);?>
" id="uploadForm_<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
" method="post" enctype="multipart/form-data" >
				<input type="hidden" name="imageid" value="<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
" />
			  <?php echo smarty_function_language(array('text' => 'Mod_Video.upload_image_video'), $this);?>
: <input type="file" name="image" />
			  <input type="submit" name="act[edit]" value="<?php echo smarty_function_language(array('text' => 'submit'), $this);?>
" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" />
			</form>
			<iframe id="uploadFrame" name="uploadFrame" style="display: none"></iframe>
		</div>		
		</td>
</tr>
<?php endif; ?>

<form id="editForm_<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
" method="post" action="<?php echo smarty_function_url(array('link' => 'current'), $this);?>
" onsubmit="xajax_editVideos(xajax.getFormValues('editForm_<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
')); return false;">
<tr>
	<td style="text-align:center; width:150px; vertical-align:top;">
		<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/videostars.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<br />
		<a href="<?php echo smarty_function_url(array('link' => 'public.videos','id' => $this->_tpl_vars['aItem']['vid_id'],'foxseotitle' => $this->_tpl_vars['aItem']['vid_title']), $this);?>
">
			<?php echo smarty_function_img(array('max_width' => '120','src' => ($this->_tpl_vars['sGImageUrl']).($this->_tpl_vars['aItem']['vid_id']).".jpg",'src_def' => "design/pic/noimage_120.jpg",'alt' => "",'id' => "mainimage_".($this->_tpl_vars['aItem']['vid_id']),'add_stamp' => 'true'), $this);?>

		</a>
		<br />
		<br />
		[ <a href="<?php echo smarty_function_url(array('link' => 'current','dvideo' => $this->_tpl_vars['aItem']['vid_id']), $this);?>
" onclick="return sure();"><?php echo smarty_function_language(array('text' => 'Mod_Video.delete'), $this);?>
</a> ]
		
		<?php if ($this->_tpl_vars['aItem']['vid_url']): ?>
		<br />
		<br />
		[ <a href="javascript:void(0);" onclick="new Effect.Appear('vid_image_<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
');"><?php echo smarty_function_language(array('text' => 'Mod_Video.change_image'), $this);?>
</a> ]
		<?php endif; ?>
		
	</td>
	<td style="vertical-align:top;">

	<div><input type="hidden" name="val[vid_id]" value="<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
" /></div>
	<table style="width:100%;" cellspacing="2" cellpadding="4">
	<tr>
	    <td style="text-align:right;" class="color"><span class="star">*</span> <?php echo smarty_function_language(array('text' => "Mod_Video.add_form_title"), $this);?>
:</td>
	    <td class="border13">
	        <input type="text" name="val[vid_title]" maxlength="40" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['vid_title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
	    </td>
	</tr>
	<?php if ($this->_tpl_vars['aItem']['vid_url']): ?>
	<tr>
    	<td style="text-align:right;" class="color"><?php echo smarty_function_language(array('text' => 'Mod_Video.add_form_stream_from'), $this);?>
:</td>
    	<td class="border13">
			<select name="val[stream_id]" style="width:150px;">
			<?php $_from = $this->_tpl_vars['aStreamOptions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aStream']):
?>
				<option value="<?php echo $this->_tpl_vars['aStream']['id']; ?>
"<?php if ($this->_tpl_vars['aItem']['stream_id'] == $this->_tpl_vars['aStream']['id']): ?> selected="true"<?php endif; ?>><?php echo $this->_tpl_vars['aStream']['name']; ?>
</option>
			<?php endforeach; endif; unset($_from); ?>
			</select>
    	</td>
	</tr>
	<tr>
	    <td style="text-align:right;" class="color"><span class="star">*</span> <?php echo smarty_function_language(array('text' => "Mod_Video.add_form_url"), $this);?>
:</td>
	    <td class="border13">
	        <input type="text" name="val[vid_url]" size="30" onfocus="this.className='inputmain';" onblur="this.className='';" value="<?php echo $this->_tpl_vars['aItem']['vid_url']; ?>
" />
	    </td>
	</tr>
	<?php endif; ?>
	<tr>
	    <td style="text-align:right;" class="color"><?php echo smarty_function_language(array('text' => 'Mod_Video.add_form_category'), $this);?>
:</td>
	    <td class="border13">
	        <select name="val[vid_list_id]" style="width:150px;">
			<?php $_from = $this->_tpl_vars['aCategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aCategory']):
?>
			<option value="<?php echo $this->_tpl_vars['aCategory']['list_id']; ?>
"<?php if ($this->_tpl_vars['aItem']['vid_list_id'] == $this->_tpl_vars['aCategory']['list_id']): ?> selected="true"<?php endif; ?>><?php echo $this->_tpl_vars['aCategory']['list_name']; ?>
</option>
			<?php endforeach; endif; unset($_from); ?>
			</select>
	    </td>
	</tr>
	<tr>
	    <td style="text-align:right;vertical-align:top;" class="color"><?php echo smarty_function_language(array('text' => 'Mod_Video.add_form_details'), $this);?>
:</td>
	    <td class="border13">
	        <textarea cols="30" rows="5" name="val[vid_info]"><?php echo $this->_tpl_vars['aItem']['vid_info']; ?>
</textarea>
	    </td>
	</tr>
	<tr>
	    <td style="text-align:right;" class="color"><?php echo smarty_function_language(array('text' => 'Mod_Video.tags'), $this);?>
:</td>
	    <td class="border13">
	        <input type="text" name="val[vid_tags]" size="30" maxlength="100" onfocus="this.className='inputmain';" onblur="this.className='';" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['vid_tags'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
	    </td>
	</tr>
	</table>

	</td>
</tr>
<tr>
	<td colspan="3">
		<div style="padding:6px; text-align:right;" class="border13">
			<span id="edit_<?php echo $this->_tpl_vars['aItem']['vid_id']; ?>
" style="font-size:9pt; font-weight:bold; display:none;">
				 <?php echo smarty_function_language(array('text' => 'Mod_Video.video_updated'), $this);?>

			</span>
			<input type="submit" value="<?php echo smarty_function_language(array('text' => 'Mod_Video.update_video'), $this);?>
" />
		</div>
		<br />
		<br />
	</td>
</tr>
</form>
<?php endforeach; endif; unset($_from); ?>
</table>
<div style="text-align:left;">
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager_nav_button.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</div>
<?php endif; ?>